import { useRoute } from "vue-router";
import { PostMessage } from "@/utils/functions";

export const useDocumentTitle = () => {
  const {
    meta: { title },
    path
  } = useRoute();

  PostMessage(window.parent!).send(path);
  return { title };
};
